<?php

namespace common\model;

use think\model\RelationModel;

class CheckListModel extends RelationModel
{

    //自动验证
    protected $_validate = [
        ['percentage', '', '', self::MUST_VALIDATE, 'require'],
        ['step_id', '', '', self::MUST_VALIDATE, 'require'],
        ['percentage', '', '', self::MUST_VALIDATE, 'integer'],
        ['content', '', '', self::MUST_VALIDATE, 'require'],
        ['content', '0,255', '', self::MUST_VALIDATE, 'length'],
    ];

    //自动完成
    protected $_auto = [
        ['uuid', 'create_uuid', self::MODEL_INSERT, 'function'],
        ['review_tools', 'online', self::MODEL_INSERT, 'string'],
    ];

}
